package com.group4.generator;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
import com.baomidou.mybatisplus.generator.config.GlobalConfig;
import com.baomidou.mybatisplus.generator.config.PackageConfig;
import com.baomidou.mybatisplus.generator.config.StrategyConfig;
import com.baomidou.mybatisplus.generator.config.rules.DateType;
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
import com.group4.statistics.entity.Daily;
import com.group4.statistics.service.DailyService;
import com.study.util.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.junit.After;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @author
 * @since 2018/12/13
 */
@Slf4j
@SpringBootTest
public class CodeGenerator {
    @Autowired
    private DailyService dailyService;
    @Test
    public void run() {
        ResponseResult<List<Daily>> all = dailyService.selectAll();

        log.info("结果：{}",all);
    }
}
